﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Workflows
{
    class CompleteStageResult
    {

        public CompleteStageResult()
        {

        }

        private bool _success;

        public bool Success
        {
            get { return _success; }
            set { _success = value; }
        }

        private List<OperationArguments> _upcomingProcessCreationArguments;

        public List<OperationArguments> UpcomingProcessCreationArguments
        {
            get
            {
                if (_upcomingProcessCreationArguments == null)
                    _upcomingProcessCreationArguments = new List<OperationArguments>(4);
                return _upcomingProcessCreationArguments;
            }
        }

        public bool HasUpcomingProcesses
        {
            get
            {
                return _upcomingProcessCreationArguments != null && _upcomingProcessCreationArguments.Count > 0;
            }
        }
    }
}
